<?php
/*
 *                        _oo0oo_
 *                       o8888888o
 *                       88" . "88
 *                       (| -_- |)
 *                       0\  =  /0
 *                     ___/`---'\___
 *                   .' \\|     |// '.
 *                  / \\|||  :  |||// \
 *                 / _||||| -:- |||||- \
 *                |   | \\\  - /// |   |
 *                | \_|  ''\---/''  |_/ |
 *                \  .-\__  '-'  ___/-. /
 *              ___'. .'  /--.--\  `. .'___
 *           ."" '<  `.___\_<|>_/___.' >' "".
 *          | | :  `- \`.;`\ _ /`;.`/ - ` : | |
 *          \  \ `_.   \_ __\ /__ _/   .-` /  /
 *      =====`-.____`.___ \_____/___.-`___.-'=====
 *                        `=---='
 * 
 * 
 *      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 * 
 *            佛祖保佑       永不宕机     永无BUG
 */
/*
 * 文章类控制器
 * @Author: LD
 * @Date: 2021-03-04 18:16:55
 * @LastEditors: LD
 * @LastEditTime: 2021-03-04 18:39:06
 * @Description: file content
 * @FilePath: \gongchengqiaojob\Application\Home\Controller\PcUserapiController.class.php
 */
namespace Home\Controller;
use Common\Controller\PcApiController;
use Common\ORG\PublicFunction;
use Common\ORG\WxFunction;
use Think\Db;

class PcInfoController extends PcApiController{

	public function _initialize() {
        
        $getsecret  = $_SERVER['HTTP_APPSECRET'];
        //取head标签内容
        if(!preg_match('/^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}$/', $getsecret)){
            $this->ajaxReturn(1, 'appsecret格式错误');
        }

        if($this->appsecret <> $getsecret){
            $this->ajaxReturn(1, 'appsecret错误');
        }
        parent::_initialize();
    }

    /**

     * professional

     * 专业人才外包

     * 工程桥PC专业人才外包

     * @access public

     * @since

     * @return json

     */
    public function professional(){
        $data           = $this->get_left_useritem();
        $professional   = M('Text')->where(array('name'=>'professional'))->find();
        $data['text']   = !empty($professional['value']) ? $professional['value']:'';
        $this->ajaxReturn(0, 'ok', $data);

    }

}
?>